﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateWork.aspx.cs" Inherits="Flow_Info_CreateWork" %>

<%@ Import Namespace="TarreOA.TarreOAModels" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="sub_right_top">
        <div class="hdm_footer">
            <div style="height: 13px; overflow: hidden;">
            </div>
            <div class="workflow_choice_content" style="width: 97%">
                <div style="height: 26px; overflow: hidden;">
                </div>
                <table width="95%" border="1" cellpadding="0" cellspacing="0" bordercolor="#72b0d8"
                    style="border-collapse: collapse;" align="center">
                    <tr bgcolor="#b1d5ef">
                        <td colspan="2" align="center">
                            新建工作
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            流程名称：
                        </td>
                        <td>
                            <label>
                                <asp:DropDownList ID="DdlNewFlowName" runat="server" Width="335px">
                                </asp:DropDownList>
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            文号/说明：
                        </td>
                        <td>
                            <div class="all_text_style">
                                <asp:TextBox ID="TxtNewWorkName" runat="server" Width="335px"></asp:TextBox>
                                <input id="Button1" style="width: 55px" type="button" value="清空" onclick="javascript:document.getElementById('TxtNewWorkName').value='';" />
                            </div>
                            
                        </td>
                    </tr>
                    <tr bgcolor="#b1d5ef">
                        <td colspan="2">
                            <asp:Button ID="BtnNew" runat="server" Text="新建" Width="59px" OnClick="BtnNew_Click" />
                            <asp:Button ID="BtnBack" runat="server" Text="返回" Width="59px" OnClick="BtnBack_Click" />
                        </td>
                    </tr>
                </table>
                <div style="height: 10px; overflow: hidden;">
                </div>
                <% if (list_step != null)
                   { %>
                <table width="95%" border="1" cellpadding="0" cellspacing="0" bordercolor="#72b0d8"
                    style="border-collapse: collapse;" align="center">
                    <tr bgcolor="#b1d5ef">
                        <td colspan="3" align="center">
                            工作流简图
                        </td>
                    </tr>
                    <tr bgcolor="#e4f1fd">
                        <td width="60" align="center">
                            步骤序号
                        </td>
                        <td align="center">
                            名称
                        </td>
                        <td width="80" align="center">
                            流程可选方向
                        </td>
                    </tr>
                    <% foreach (Flow_NewFlowStep fnfstep in list_step)
                       { %>
                    <tr>
                        <td width="60" align="center">
                            <%= fnfstep.Sort_id %>
                        </td>
                        <td>
                            <%=fnfstep.Prc_name %>
                        </td>
                        <td width="80" align="center">
                            <% string[] nexts = fnfstep.NextPrc_id.Split(','); %>
                            <% for (int i = 0; i < nexts.Length; i++)
                               { %>
                            <% if (nexts[i] != null && !"".Equals(nexts[i]))
                               { %>
                            <font style="font-size: 12px">→<%=nexts[i] %></font><br />
                            <% } %>
                            <% } %>
                        </td>
                    </tr>
                    <% } %>
                </table>
                <% }
                   else
                   { %>
                <script type="text/javascript">
                    alert('当前无流程步骤！');
                </script>
                <% } %>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
